Vue.http.options.emulateJSON = true;
var vmOne = new Vue({
	el: '#app',
	data:{
		apiUrl:"http://frpzj.lu8.win:54355/app/classroom?cmd=queryReport",
		replydata:"",
		sites: [
			{userid:1,name:'张三',expression:"有天赋的",synthesize:"出色"},
			{userid:2,name:'李四',expression:"专注的",synthesize:"优秀"},
			{userid:3,name:'王五',expression:"有兴趣的",synthesize:"挑战自我"},
			{userid:4,name:'赵六',expression:"有困难的",synthesize:"突破自我"}
		],
		data: {
			//总项目数
			totalCount: 200,
			//分页数
			arrPageSize:[10,20,30,40],
			//当前分页数
			pageCount: 20,
			//当前页面
			pageCurrent: 1,
			//分页大小
			pagesize: 10,
			//显示分页按钮数
			showPages: 11,
			//开始显示的分页按钮
			showPagesStart: 1,
			//结束显示的分页按钮
			showPageEnd: 100,
			//所有数据
			arrayDataAll:[],
			//分页数据
			arrayData: [],
			//排序字段
			sortparam:"",
			//排序方式
			sorttype:1,
		}
	},
	methods: {
		queryReport:function(){
			this.$http.get(this.apiUrl)
			.then(response => {
				this.replydata = response.body;
				if("queryReport" == this.replydata.cmd){
					this.sites = this.replydata.data;
					console.log(this.sites);
				}
			},response => {
				console.log(response.status + response.statusText);
			}).catch(function(response) {
				alert(response);
			})
		}
	}
});